#include "stdafx.h"
#include "eString.h"

namespace JHCPP
{
	namespace CppUnit{

		std::string eString(const char *cstring)
		{
			return std::string(cstring);
		}

		std::string eString(std::string& expandedString)
		{
			return expandedString;
		}

		std::string eString(int number)
		{
			char buffer[50]; 
			sprintf(buffer, "%d", number); 
			return std::string (buffer); 
		}

		std::string eString(long number)
		{
			char buffer[50]; 
			sprintf(buffer, "%ld", number); 
			return std::string (buffer); 
		}

		std::string eString(double number)
		{
			char buffer[50]; 
			sprintf(buffer, "%lf", number); 
			return std::string(buffer);
		}

		std::string eString(const void* ptr)
		{
			char buffer[50]; 
			sprintf(buffer, "%p", ptr); 
			return std::string(buffer);
		}
	}//end namespace CppUnit
}//end namespace JHCPP
